package edu.ccut.saturn.manager.logger.core;

import edu.ccut.saturn.component.DefaultComponent;
import edu.ccut.saturn.component.IParameterContext;
import edu.ccut.saturn.component.SaturnLoggerManager;

public class UpdateLogger extends DefaultComponent {
	@Override
	public void execute(IParameterContext parameterContext) throws Exception {
		String key = (String) parameterContext.getParameterValue(0);
		String level = (String) parameterContext.getParameterValue(1);

		if (key != null && level != null) {
			SaturnLoggerManager.getInstance().setSaturnLogger(key, level);
		}
	}
}